package com.mk.eventbus;

import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.View;

public class Main2Activity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main2);

    }

    public void sendMsg(View view) {
        TestMsg testMsg = new TestMsg();
        testMsg.con="开心啦";
        System.out.println(testMsg.con);
        EventBus.getInstance().post(testMsg);
    }
}
